<?php /* Smarty version 2.6.25, created on 2011-10-09 15:25:43
         compiled from orders_my.htm */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('insert', 'format_orders_isdo', 'orders_my.htm', 32, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "top.htm", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	
	<div class="allcontent">
		<div class="allcenter-left1">
			<div class="title-left"><img src="<?php echo $this->_tpl_vars['_TEMPLATESDIR']; ?>
/images/title-left.jpg" /></div>
			<div class="title-middle">我的订单</div>
			<div class="title-right"><img src="<?php echo $this->_tpl_vars['_TEMPLATESDIR']; ?>
/images/title-right.jpg" /></div>
            <div class="title-text"><a href="/orders/">返回订餐中心</a></div>
			<br class="clear-f" />
			<div class="message-form">
				<div class="top_title">我的订单(订单处理前10分钟可以取消)</div>
				<div class="comment_con">
					
                    
                   
                    
                    <?php if ($this->_tpl_vars['istoday'] > 0): ?>
                    <div class="comment_con">
	<ul >
		<li style="width:132px;	background-color:#fff8e7; border-right:#ff9041 1px solid;border-top:#ff9041 2px solid; border-bottom:#fecc73 1px solid; float:left;">菜品</li>
		<li style="width:132px;	background-color:#fff8e7; border-right:#ff9041 1px solid;border-top:#ff9041 2px solid; border-bottom:#fecc73 1px solid;float:left;">单价</li>
		<li style="width:132px;	background-color:#fff8e7; border-right:#ff9041 1px solid;border-top:#ff9041 2px solid; border-bottom:#fecc73 1px solid;float:left;">份额</li>
		<li style="width:132px;	background-color:#fff8e7; border-right:#ff9041 1px solid;border-top:#ff9041 2px solid; border-bottom:#fecc73 1px solid;float:left;"><span style="width:133px;float:left;">订单状态</span></li>
        <li style="width:132px; border-top:#ff9041 2px solid;background-color:#fff8e7; border-bottom:#fecc73 1px solid;float:left;"><span style="width:133px;float:left;">操作</span></li>
	</ul>
	<?php $_from = $this->_tpl_vars['today']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['t']):
?>
    <br class="clear-f" />
	<ul >
		<li style="width:133px;float:left;"><?php echo $this->_tpl_vars['t']['foodname']; ?>
</li>
		<li style="width:133px;float:left;"><?php echo $this->_tpl_vars['t']['foodprice']; ?>
</li>
		<li style="width:133px;float:left;"><?php echo $this->_tpl_vars['t']['foodnum']; ?>
</li>
		<li style="width:133px;float:left;"><?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');
echo smarty_core_run_insert_handler(array('args' => array('name' => 'format_orders_isdo', 'isdo' => $this->_tpl_vars['t']['isdo'])), $this); ?>
</li>
        <li style="width:133px;float:left;"><a href="javascript:" onclick="Myorder('<?php echo $this->_tpl_vars['t']['ordersid']; ?>
','<?php echo $this->_tpl_vars['t']['isdo']; ?>
');">取消订单</a></li>
	</ul>
    <?php endforeach; endif; unset($_from); ?>
    <br class="clear-f" />
	
    

			  </div>
              
               <?php else: ?>
                今日没有订单记录
                <?php endif; ?>
                    
				</div>
			</div>
			<div class="message-form">
				<div class="top_title">历史订单</div>
				<div class="comment_con">
	<ul >
		<li style="width:132px;	background-color:#fff8e7; border-right:#ff9041 1px solid;border-top:#ff9041 2px solid; border-bottom:#fecc73 1px solid; float:left;">菜品</li>
		<li style="width:132px;	background-color:#fff8e7; border-right:#ff9041 1px solid;border-top:#ff9041 2px solid; border-bottom:#fecc73 1px solid;float:left;">单价</li>
		<li style="width:132px;	background-color:#fff8e7; border-right:#ff9041 1px solid;border-top:#ff9041 2px solid; border-bottom:#fecc73 1px solid;float:left;">份额</li>
		<li style="width:132px;	background-color:#fff8e7; border-right:#ff9041 1px solid;border-top:#ff9041 2px solid; border-bottom:#fecc73 1px solid;float:left;"><span style="width:133px;float:left;">订单状态</span></li>
        <li style="width:132px; border-top:#ff9041 2px solid;background-color:#fff8e7; border-bottom:#fecc73 1px solid;float:left;"><span style="width:133px;float:left;">订单日期</span></li>
	</ul>
	<?php $_from = $this->_tpl_vars['pagelist']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['p']):
?>
    <br class="clear-f" />
	<ul >
		<li style="width:133px;float:left;"><?php echo $this->_tpl_vars['p']['foodname']; ?>
</li>
		<li style="width:133px;float:left;"><?php echo $this->_tpl_vars['p']['foodprice']; ?>
</li>
		<li style="width:133px;float:left;"><?php echo $this->_tpl_vars['p']['foodnum']; ?>
</li>
		<li style="width:133px;float:left;"><?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');
echo smarty_core_run_insert_handler(array('args' => array('name' => 'format_orders_isdo', 'isdo' => $this->_tpl_vars['p']['isdo'])), $this); ?>
</li>
        <li style="width:133px;float:left;"><?php echo $this->_tpl_vars['p']['createtime']; ?>
</li>
	</ul>
    <?php endforeach; endif; unset($_from); ?>
    <br class="clear-f" />
	
    

			  </div>
		  </div>
			</div>
		<br class="clear-f" />
	</div>
	<br class="clear-f" />
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "foot.htm", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>